<?php
/* @var $this UserController */
/* @var $user User */
/* @var $form CActiveForm */
?>

<div class="form wide">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Campos com <span class="required">*</span> são obrigatórios.</p>

	<?php echo $form->errorSummary($user); ?>
<div class="col3">
	<div class="row">
		<?php echo $form->labelEx($user,'username'); ?>
		<?php echo $form->textField($user,'username',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($user,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($user,'password'); ?>
		<?php echo $form->passwordField($user,'password',array('size'=>60,'maxlength'=>256)); ?>
		<?php echo $form->error($user,'password'); ?>
	</div>

        
	<div class="row">
		<?php echo $form->labelEx($user,'email'); ?>
		<?php echo $form->textField($user,'email',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($user,'email'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($user,'idProj'); ?>
                <?php echo $form->dropDownList($user,'idProj', Projeto::model() ->getTypeOptions()); ?>
		<?php echo $form->error($user,'idProj'); ?>
	</div>
</div>
<div class="col3">
	<div class="row">
		<?php echo $form->labelEx($user,'parea'); ?>
		<?php echo $form->dropDownList($user,'parea', $user->areaOptions); ?> 
		<?php echo $form->error($user,'parea'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($user,'punidade'); ?>
		<?php echo $form->dropDownList($user,'punidade', $user->unidadeOptions); ?> 
		<?php echo $form->error($user,'punidade'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($user,'pempresa'); ?>
		<?php echo $form->dropDownList($user,'pempresa', $user->empresaOptions); ?> 
		<?php echo $form->error($user,'pempresa'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($user,'pprojeto'); ?>
		<?php echo $form->dropDownList($user,'pprojeto', $user->projetoOptions); ?> 
		<?php echo $form->error($user,'pprojeto'); ?>
	</div>
</div>
<div class="col3">
	<div class="row">
		<?php echo $form->labelEx($user,'pusuario'); ?>
		<?php echo $form->dropDownList($user,'pusuario', $user->usuarioOptions); ?> 
		<?php echo $form->error($user,'pusuario'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($user,'pacentral'); ?>
                <?php echo $form->dropDownList($user,'pacentral', $user->acentralOptions); ?>
		<?php echo $form->error($user,'pacentral'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($user,'pdoctecnica'); ?>
                <?php echo $form->dropDownList($user,'pdoctecnica', $user->doctecnicaOptions); ?>
		<?php echo $form->error($user,'pdoctecnica'); ?>
	</div>
        <div class="row buttons">
		<?php echo CHtml::submitButton($user->isNewRecord ? 'Salvar' : 'Salvar'); ?>
	</div>
</div>




<?php $this->endWidget(); ?>

</div><!-- form -->